package com.chengxiaoxiao.domain;

import java.io.Serializable;

/*CREATE TABLE `users` (
        `Id` int(11) NOT NULL AUTO_INCREMENT,
        `userName` varchar(16) NOT NULL,
        `password` varchar(32) NOT NULL,
        `realName` varchar(32) NOT NULL,
        `gender` varchar(8) NOT NULL,
        `classesId` int(11) NOT NULL,
        `studentNum` varchar(32) NOT NULL,
        `isBlack` int(11) NOT NULL,
        `mostBorrowNum` int(255) DEFAULT NULL,
        `picture` varchar(255) DEFAULT NULL,
        PRIMARY KEY (`Id`)
        ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;*/

public class Users implements Serializable {

    private int id;
    private String userName;
    private String password;
    private String realName;
    private String gender;
    private int classesId;
    private String studentNum;
    private int isBlack;
    private String picture;
    private int mostBorrowNum;
    private UsersExtra usersExtra;
    private Classes classes;

    public Classes getClasses() {
        return classes;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    public Users() {
    }

    public Users(int id, String userName, String password, String realName, String gender, int classesId, String studentNum, int isBlack, String picture, int mostBorrowNum, UsersExtra usersExtra) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.realName = realName;
        this.gender = gender;
        this.classesId = classesId;
        this.studentNum = studentNum;
        this.isBlack = isBlack;
        this.picture = picture;
        this.mostBorrowNum = mostBorrowNum;
        this.usersExtra = usersExtra;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getClassesId() {
        return classesId;
    }

    public void setClassesId(int classesId) {
        this.classesId = classesId;
    }

    public String getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(String studentNum) {
        this.studentNum = studentNum;
    }

    public int getIsBlack() {
        return isBlack;
    }

    public void setIsBlack(int isBlack) {
        this.isBlack = isBlack;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getMostBorrowNum() {
        return mostBorrowNum;
    }

    public void setMostBorrowNum(int mostBorrowNum) {
        this.mostBorrowNum = mostBorrowNum;
    }

    public UsersExtra getUsersExtra() {
        return usersExtra;
    }

    public void setUsersExtra(UsersExtra usersExtra) {
        this.usersExtra = usersExtra;
    }
}
